package panelSites;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;

public class ContainsPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ContainsPanel(JLabel label) {
		
		Border border = BorderFactory.createLineBorder(Color.black);
		Border margin = new EmptyBorder(5, 10, 10, 10);
		
		setBorder(new CompoundBorder(border, margin));
		setBackground(Color.LIGHT_GRAY);
		setLayout(new BorderLayout(5, 5));
		add(label, BorderLayout.NORTH);
	}
	
}
